package com.leadingsoft.pwxk.converter;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.CategoryDto;
import com.leadingsoft.pwxk.model.Category;

@Component
public class CategoryConverter extends AbstractConverter<Category,CategoryDto>{

	@Override
	protected CategoryDto toDtoActual(Category model) {
		CategoryDto dto = new CategoryDto();
		BeanUtils.copyProperties(model, dto);
		return dto;
	}

	@Override
	public void copyProperties(Category model, CategoryDto dto) {
	}

}
